package com.exmaple.springcloud.controller;

import com.exmaple.springcloud.apis.NacosPayFeignApi;
import com.exmaple.springcloud.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderNacosController {
    @Autowired
    NacosPayFeignApi nacosPayFeignApi;

    @GetMapping("/feign/consumer/pay/nacos/{id}")
    public R paymentInfo(@PathVariable("id") Integer id) {
        return  nacosPayFeignApi.getPayInfo(id);
    }
}
